<?php
/**
* @author: Truong Kim Phung
* @date: February 14, 2014
*/
if( !isset($AppUI) ||
    !isset($_SESSION['category']) ||
    (isset($_SESSION['category']) && ($_SESSION['category']&1<<1)==0)

) {
	redirect(HOST_BACKEND);
}
$this->load->model('Category_Model','category');
$row = $this->category->get($this->input->get('pparentid',0));//$intParentId=$intCatId
$this->smarty->assign('row',$row);
$this->smarty->assign('intParentId',$this->input->get('parentid',0));
$this->smarty->display('category/add.tpl');
